﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Smartec.Accounts.Camel.AMS.Model.Entities
{
    [MetadataType(typeof(News_Metadata))]
    public partial class News
    {

    }

    public class News_Metadata
    {
        [Required(ErrorMessage = "*")]
        [DisplayName("اسم الخبر")]
        [StringLength(50, ErrorMessage = "يجب ان يكون اقل من 50 حرف")]
        public string Name { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("ملخص الخبر")]
        [StringLength(400, ErrorMessage = "يجب ان يكون اقل من 400 حرف")]
        public string ShortDescription { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("تفاصيل الخبر")]
        [UIHint("RichEditor")]
        [AllowHtml]
        public string FullDescription { get; set; }

    }
}


